package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookEntityDao;
import io.wdb.modules.generator.generator.entity.BookEntityEntity;
import io.wdb.modules.generator.generator.service.BookEntityService;



@Service("bookEntityService")
public class BookEntityServiceImpl implements BookEntityService {
	@Autowired
	private BookEntityDao bookEntityDao;
	
	@Override
	public BookEntityEntity queryObject(String rfidCode){
		return bookEntityDao.queryObject(rfidCode);
	}
	
	@Override
	public List<BookEntityEntity> queryList(Map<String, Object> map){
		return bookEntityDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookEntityDao.queryTotal(map);
	}
	
	@Override
	public void save(BookEntityEntity bookEntity){
		bookEntityDao.save(bookEntity);
	}
	
	@Override
	public void update(BookEntityEntity bookEntity){
		bookEntityDao.update(bookEntity);
	}
	
	@Override
	public void delete(String rfidCode){
		bookEntityDao.delete(rfidCode);
	}
	
	@Override
	public void deleteBatch(String[] rfidCodes){
		bookEntityDao.deleteBatch(rfidCodes);
	}
	
}
